﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Meraz.Core.Model;
using Meraz.Core.Repositories;

namespace Meraz.Core.Commands
{
    public interface ISaveBlogStudiesCommand
    {
        void Execute(IEnumerable<BlogStudy> blogStudies);
    }
    public class SaveBlogStudiesCommand : ISaveBlogStudiesCommand
    {
        public IBlogStudyRepository BlogStudyRepository { get; set; } 
        public void Execute(IEnumerable<BlogStudy> blogStudies)
        {
            //iterate through each BlogStudy
            //search for entity
            //create if it does not exist
            //Assign ID
            //Save
        }
    }
}
